package ynu.beggar.server.entities.DO;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import ynu.beggar.server.entities.PO.UserInfoPO;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserChangeInfoDO {
    private String userName;
    private String stuCardUrl;
    private String userGender;
    private String campus;
    private String dormitory;
    private String roomNum;
    private String stuId;
    private String educationLevel;
    private Integer grade;
    private String college;
    private String major;
    private String phoneNum;
    private String qqNum;
    private String wechatAccount;

    public UserChangeInfoDO(UserInfoPO userInfoPO) {
        this.userName = userInfoPO.getUserName();
        this.stuCardUrl = userInfoPO.getStuCardUrl();
        this.userGender = userInfoPO.getUserGender();
        this.campus = userInfoPO.getCampus();
        this.dormitory = userInfoPO.getDormitory();
        this.roomNum = userInfoPO.getRoomNum();
        this.stuId = userInfoPO.getStuId();
        this.educationLevel = userInfoPO.getEducationLevel();
        this.grade = userInfoPO.getGrade();
        this.college = userInfoPO.getCollege();
        this.major = userInfoPO.getMajor();
        this.phoneNum = userInfoPO.getPhoneNum();
        this.qqNum = userInfoPO.getQqNum();
        this.wechatAccount = userInfoPO.getWechatAccount();
    }
}
